package com.wm.blog_common.constatnt;

/***
 * @ClassName: CommonConstant
 * @Description: 常量
 * @Author: 半卷流年
 * @Create_time: 16:40 2020-3-26
 */
public class CommonConstant {

    /**
     * feign调用指定服务 ,需要和被调用服务的spring.application.name 一致,否则调用不到,也就是指定feign需要调用的服务
     */
    public final static String PICTURE_MODULE_NAME = "blog-picture";

    public final static String SEARCH_MODULE_NAME = "blog-search";

    public final static String ADMIN_MODULE_NAME = "blog-admin";

    public final static String TOKEN_KEY = "Authorization";

    public final static  String TOKEN_PREFIX = "Beare";

    public final static String ADMIN = "adminId";

    public final static String ADMIN_NAME = "adminName";

    public final static String BLOG_TILE = "博客列表";


    public final static String WEB_REDIS_PREFIX = "web@_";


    /**
     * 验证码redis失效时间,秒
     */
    public final static Integer CODE_REDIS_KEY_EXPIRE = 60;


    public final static String WEB_TOKEN = "token";

    public final static Integer WEB_LOGIN_REDIS_EXPIRE = 3600;

    public final static String WEB_USER_ID = "userId";


    public final static Integer DEFAULT_MAX_SIZE = 10;


    public final static String ICON_EXPORT_TITLE = "icon图标excel";

    public final static String USER_ACTIVE_SUCCESS_EMAIL_SUBJECT = "%s账号激活成功";

    public final static String USER_ACTIVE_SUCCESS_EMAIL_CONTENT = "账号激活成功,请登录";

    public final static String AMIND_Authorization = "Authorization";

    public final static String ACTIVE_ACCOUNT_EMAIL = "流年博客管理员%s激活邮件";

    public final static String ACTIVE_ACCOUNT_URL = "http://localhost:9093/blog/admin/activeAccount";

    public final static String ACCOUNT_INIT_PASSWORD = "123";


    public final static String ADMIN_EXPORT_TITLE = "管理员信息";

    public final static String BLOG_DEFAULT_ARTICLES_PART = "流年博客";

    public static int BLOG_SUMMARY_LENGTH_LIMIT = 100;

    public static String BLOG_ES_INDEX_NAME = "liunian_blog_index";

    public static String BLOG_ES_TYPE = "_doc";




    public static String BLOG_ES_DEFAULT_HIGHLIGHT = "highlight";

    public static String BLOG_ES_DEFAULT_SOURCE = "source";


}
